package com.fivezerotwo.springbootserver.common.ReturnModel;

/**
 * 返回code定义
 * Created by qiqi on 2018/7/25 22:14
 */
public enum ReturnCode {

    SUCCESS(200),//成功

    FAIL(400),//失败

    SERVICE_FAIL(401),//业务失败

    NOT_FOUND(404),//接口不存在

    INTERNAL_SERVER_ERROR(500);//服务器内部错误

    private final int code;

    ReturnCode(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
